{% extends "base.html" %}

{% block content %}
<div class="auth-container">
    <div class="auth-box">
        <h2 class="text-center">🔐 修改密码</h2>
        <p class="text-center">欢迎，<strong>{{ username }}</strong>！</p>
        <form method="POST" action="{{ url_for('update_password') }}">
            <div class="mb-3">
                <label class="form-label">输入邮箱</label>
                <input type="email" class="form-control" name="email" required>
            </div>
            <div class="mb-3">
                <label class="form-label">新密码</label>
                <input type="password" class="form-control" name="new_password" required>
            </div>
            <div class="mb-3">
                <label class="form-label">确认密码</label>
                <input type="password" class="form-control" name="confirm_password" required>
            </div>
            <button type="submit" class="btn btn-success w-100">确认修改</button>
        </form>
    </div>
</div>
{% endblock %}

